package com.itheima.pojo;

import java.text.DecimalFormat;

/**
 * @author huangbin
 * @date 2022/6/6 14:35
 * 业绩基本类
 */
public class Achievement {
    /**
     * id
     */
    private Integer id;
    /**
     * 销售额
     */
    private Double price;

    /**
     * 日期
     */
    private String time;

    /**
     * 账户类型
     */
    private String accountType;

    /**
     * 所属门店id
     */
    private Integer scoreId;

    /**
     * 员工id
     */
    private Integer staffId;

    public Achievement() {
    }

    public Achievement(Integer id, Double price, String time, String accountType, Integer scoreId, Integer staffId) {
        this.id = id;
        this.price = price;
        this.time = time;
        this.accountType = accountType;
        this.scoreId = scoreId;
        this.staffId = staffId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getAccountType() {
        return accountType;
    }

    public void setAccountType(String accountType) {
        this.accountType = accountType;
    }

    public Integer getScoreId() {
        return scoreId;
    }

    public void setScoreId(Integer scoreId) {
        this.scoreId = scoreId;
    }

    public Integer getStaffId() {
        return staffId;
    }

    public void setStaffId(Integer staffId) {
        this.staffId = staffId;
    }

    @Override
    public String toString() {
        return "Achievement{" +
                "id=" + id +
                ", price=" + price +
                ", time='" + time + '\'' +
                ", accountType='" + accountType + '\'' +
                ", scoreId=" + scoreId +
                ", staffId=" + staffId +
                '}';
    }
}
